import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/discover'
    },
    {
      path:'/discover',
      name:'discover',
      component:()=>import('@/views/DiscoveryView.vue')
    },
    {
      path:'/mine',
      name:'mine',
      component:()=>import('@/views/MineView.vue')
    },
    {
      path:'/video',
      name:'video',
      component:()=>import('@/views/VideoView.vue')
    },
    {
      path:'/yuncun',
      name:'yuncun',
      component:()=>import('@/views/YuncunView.vue')
    }
  ]
})

export default router
